package com.mysoftbase.base.dydatabase;

import com.mysoftbase.base.holder.DataSourceContextHolder;
import org.springframework.jdbc.datasource.lookup.AbstractRoutingDataSource;

/**
 * @Author: JohnCoding
 * @Description:
 * @date: 2020/4/30 9:48
 */
public class MultipleDataSource extends AbstractRoutingDataSource {


    @Override
    protected Object determineCurrentLookupKey() {
        return DataSourceContextHolder.getDataSource();
    }
}
